<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<div id="app">
    <!--  组件：传递给组件中的值：props  -->
    <easysoso v-for="item in items" v-bind:easy="item"></easysoso>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
<script>
    //定义一个vue组件component
    Vue.component("easysoso",{
        props: ['easy'],
        template: '<li>{{easy}}</li>'
    });

    var vm = new Vue({
        el: "#app",
        data:{
            items: ['java','mysql','linux']
        }
    });
</script>
</body>
</html>